package vn.support.connection;

import vn.support.core.dto.DataObject;

/**
 * Cung cap chuc nang gui request toi server va nhan response tra ve
 * @author nttuyen
 * @version 0.0.1
 */
public interface Connection {
	public static final String URL = "http://mart4viet.com:8080/ss/winapp/index.php";
	public static final String RESPONSE_PROCESSOR = "response.processor";
	
	public static final String LOGIN_ACTION = "login";
	public static final String LOGOUT_ACTION = "logout";
	
	public static final String FETCH_VISIITORS_ACTION = "fetchvisitors";
	public static final String PROACTIVE_FORCE_CHAT_ACTION = "proactiveforcedchat";
	public static final String PROACTIVE_REQUEST_CHAT_ACTION = "proactiverequestchat";
	public static final String START_STAFF_TO_STAFF_CHAT_ACTION = "startstafftostaffchat";
	public static final String START_STAFF_CHAT_ACTION = "startstaffchat";
	public static final String CHAT_LOOP_FRAME_ACTION = "chatloopframe";
	public static final String POST_CHAT_MESSAGE_ACTION = "postchatmessage";
	
	public static final String DTO_RESPONSE_NAME = "winapp.response";
	public static final String DTO_RESPONSE_ACTION = "response.action";
	public static final String DTO_RESPONSE_COMPRESSION = "response.compression";
	public static final String DTO_RESPONSE_MD5_COMPRESSION = "response.md5.compression";
	public static final String DTO_RESPONSE_MD5_UNCOMPRESSION= "response.md5.uncompression";
	public static final String DTO_RESPONSE_SIZE_COMPRESSION = "response.size.compression";
	public static final String DTO_RESPONSE_SIZE_UNCOMPRESSION = "response.size.uncompression";
	public static final String DTO_RESPONSE_DATA = "response.data";
	
	
	/**
	 * Thuc hien mot request toi server de lay ket qua tra ve
	 * @param data
	 */
	public void execute(final DataObject data);
}
